package interfaces;

/**
 * Interface of the connections between something
 *
 * @param <INOUT>
 */
public interface ConnectorI<INOUT> {
	
	  /**Fetching the next item from the previous stage
	 * @return
	 */
	public INOUT recv();
	  /**Sending the next item from the previous stage
	 * @param item
	 * @return
	 */
	public boolean send(INOUT item);
	  /**Checks if the end of stream is reached
	 * @return boolean
	 */
	public boolean eos();
	  /**
	 * stops all activity
	 */
	public void stop();
}
